Booking flow - Get timeslots
GET/v1/restaurants/:id/timeslots
Get list of time slots for a given restaurant and date.
Request
Path Parameters
restaurant uuid that needs to be considered for filter
Query Parameters
date that needs to be considered for filter
offer uuid that may be considered for filter
party size that may be considered for filter
Responses
- 200
- 401
- 404
Successful
- */*
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Date and time of the timeslot
List of offer uuids linked to the timeslot
Has availability for reservation without offer
This timeslot requires a payment guarantee. If true at least one offer and/or the normal stock is protected by a guarantee requirement
guaranteeRequirementList
object[]
required
Detail of the guarantee requirement (will have at least 1 object if the hasPaymentGuaranteeRequirement is true)
Possible values: [imprint
, prepayment
]
amount of the guarantee (in euros)
minimum amount of hours needed before the mealdate in case of cancellation
minimum party size for which this guarantee requirement applies. If it applies to all party sizes, minimumPartySize will be equal to 0
offer uuid linked to the guarantee requirement. If no offerUuid is present, we are dealing with the normal stock
[
{
"datetime": "2022-01-01T12:30:00+01:00",
"offers": [
"a114c986-9d5b-4c34-a86b-427137dae3d4"
],
"hasNormalStock": true,
"hasPaymentGuaranteeRequirement": true,
"guaranteeRequirementList": [
{
"guaranteeType": "imprint",
"amount": 10,
"minimumCancellationHours": 24,
"minimumPartySize": 2,
"offerUuid": "string"
}
]
}
]
Unauthorized
- */*
- Schema
- Example (from schema)
Schema
Possible values: [Unauthorized
]
Possible values: [401
]
{
"data": {},
"error": "Unauthorized",
"statusCode": 401
}
Not Found
- */*
- Schema
- Example (from schema)
Schema
data
object
Possible values: [RESTAURANT_NOT_FOUND
]
Possible values: [Not Found
]
Possible values: [404
]
{
"data": {
"code": "RESTAURANT_NOT_FOUND"
},
"error": "Not Found",
"statusCode": 404
}